package com.zpark.transaction.service.convert;

import com.zpark.transaction.api.dto.PayChannelDTO;
import com.zpark.transaction.api.dto.PlatformChannelDTO;
import com.zpark.transaction.service.entity.PayChannel;
import com.zpark.transaction.service.entity.PlatformChannel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @PackageName: com.zpark.transaction.service.convert
 * @ClassName: IOrderResultConvert
 * @Description:
 * @author: RZS
 * @date: 2024/5/21  11:15
 */
@Mapper
public interface IPlatFormChannelConvert {
    // 获取当前对象的实例
    IPlatFormChannelConvert INSTANCE = Mappers.getMapper(IPlatFormChannelConvert.class);

    // dto转entity
    PlatformChannel dtoToEntity(PlatformChannelDTO dto);

    // entity转dto
    PlatformChannelDTO entityToDto(PlatformChannel payOrder);

    // list的dto转list的entity
    List<PlatformChannel> listDtoToListEntity(List<PlatformChannelDTO> dtos);

    // list的entity转list的dto
    List<PlatformChannelDTO> listEntityToListDto(List<PlatformChannel> payOrders);
}
